<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddActivityExpenditureToWaimai extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('waimai_orders', function (Blueprint $table) {
            $table->unsignedInteger('activityExpenditure')->default(0)->comment('商家活动支出')->after('refundPrice');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('waimai_orders', function (Blueprint $table) {
            $table->dropColumn('activityExpenditure');
        });
    }
}
